package com.yjd.comm.asynmsg.enums;

import com.yjd.comm.rpm.RpmServiceKeyEnum;

/**
 * <b>description</b>：消息客户id <br>
 * <b>time</b>：2015-11-9下午8:50:37 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public enum TaskMsgClientIdEnum {

	YJD_PUBLIC("1", "医界贷",RpmServiceKeyEnum.RPM_PUBLIC_KEY_E);

	private String value;
	private String description;
	private RpmServiceKeyEnum rpmServiceKeyEnum;

	private TaskMsgClientIdEnum(String value, String description,RpmServiceKeyEnum rpmServiceKeyEnum) {
		this.value = value;
		this.description = description;
		this.rpmServiceKeyEnum = rpmServiceKeyEnum;
	}

	public String getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}

	public RpmServiceKeyEnum getRpmServiceKeyEnum() {
		return rpmServiceKeyEnum;
	}

	public static TaskMsgClientIdEnum get(String value) {
		TaskMsgClientIdEnum[] enums = TaskMsgClientIdEnum.values();
		for (TaskMsgClientIdEnum enum1 : enums) {
			if (enum1.getValue().equals(value)) {
				return enum1;
			}
		}
		return null;
	}

	public static String getDesc(String value) {
		TaskMsgClientIdEnum enum1 = TaskMsgClientIdEnum.get(value);
		return enum1 != null ? enum1.getDescription() : null;
	}
	

}
